import { createWebHashHistory,createRouter } from "vue-router"
const staticRouters = [
  {
    path: '/',
    name: 'main',
    redirect: '/screenShot',
    meta: {
      name: '主',
      hideInMenu:true
    }
  },
  {
    path: '/screenShot',
    name: 'screenShot',
    meta: {
      name: '截屏'
    },
    component: () => import("@/views/screenShot/index.vue")
  },
  {
    path: '/select',
    name: 'select',
    meta: {
      name: 'CySelect'
    },
    component:()=>import("@/views/select/index.vue")
  },
 
  {
    path: '/radioGroup',
    name: 'CyRadioGroup',
    meta: {
      name: 'CyradioGroup'
    },
    component:()=>import("@/views/radioGroup/index.vue")
  },
  {
    path: '/checkboxGroup',
    name: 'checkboxGroup',
    meta: {
      name: 'CyCheckboxGroup'
    },
    component:()=>import("@/views/checkboxGroup/index.vue")
  },
  {
    path: '/proform',
    name: 'proform',
    meta: {
      name: 'CyProform'
    },
    component:()=>import("@/views/proForm/index.vue")
  },
  {
    path: '/searchform',
    name: 'searchform',
    meta: {
      name: 'CySearchform'
    },
    component:()=>import("@/views/searchForm/index.vue")
  },
  {
    path: '/protable',
    name: 'protable',
    meta: {
      name: 'CyProtable'
    },
    component:()=>import("@/views/proTable/index.vue")
  },
  {
    path: '/selectMonths',
    name: 'selectMonths',
    meta: {
      name: 'CySelectMonths'
    },
    component:()=>import("@/views/selectMonths/index.vue")
  },
  {
    path: '/selectQuarter',
    name: 'selectQuarter',
    meta: {
      name: 'CySelectQuarter:季度选择'
    },
    component:()=>import("@/views/selectQuarter/index.vue")
  },
  {
    path: '/anchor',
    name: 'anchor',
    meta: {
      name: 'CyAnchor:锚点'
    },
    component:()=>import("@/views/anchor/index.vue")
  },
  {
    path: '/editTable',
    name: 'editTable',
    meta: {
      name: 'CyeditTable:可编辑table'
    },
    component:()=>import("@/views/editTable/index.vue")
  },
  {
    path: '/split',
    name: 'split',
    meta: {
      name: 'CySplit：分割窗口'
    },
    component:()=>import("@/views/split/index.vue")
  },
  {
    path: '/chart',
    name: 'chart',
    meta: {
      name: 'chart'
    },
    component:()=>import("@/views/chart/index.vue")
  },
  {
    path: '/virtualTable',
    name: 'virtualTable',
    meta: {
      name: '虚拟table'
    },
    component:()=>import("@/views/virtualTable/index.vue")
  },

]
const router = createRouter({
  history: createWebHashHistory(),
  routes: staticRouters,
  scrollBehavior :()=> ({left:0,top:0})
})
export  default router